import MWrapper from "../components/MWrapper/MWrapper"
export const comArr= {
	"mi-carousel":true,
	"mi-grid":true,
	"mi-listview-normal":true,
	"mi-search-tabs":true,
	"mi-senior-search":true,
	"mi-listview":true,
	"mi-rate":true,
	"mi-input":true,
	"mi-input-number":true,
	"mi-input-tel":true,
	"mi-text":true,
	"mi-line":true,
	"mi-text-map":true,
	"mi-text-tel":true,
	"mi-group":true,
	"mi-textarea":true,
	"mi-select":true,
	"mi-select-more":true,
	"mi-select-more-other":true,
	"mi-select-other":true,
	"mi-select-contacts":true,
	"mi-switch":true,
	"mi-radio-group":true,
	"mi-datepicker":true,
	"mi-datetime":true,
	"mi-time":true,
	"mi-title":true,
	"mi-line-bar":true,
	"mi-area":true,
	"mi-pie":true,
	"mi-gauge":true,
	"mi-upload-img":true,
	"mi-timeline":true,
	"mi-fulltext":true,
	"mi-box":true,
	"mi-html-card":true,
	"mi-progress":true,
	"mi-mini-list":true,
	"mi-chartcard":true,
	"mi-miniarea":true,
	"mi-minibar":true,
	"mi-miniprogress":true,
	"mi-mini-subprogress":true,
	"mi-minipie":true,
	"mi-miniring":true,
	"mi-miniradar":true,
	"mi-select-display":true,
	"mi-select-more-display":true,
	"mi-image":true,
	"mi-input-number-click":true,
	"mi-input-number-modal":true,
	"mi-datepicker-footer":true,
	"mi-datepicker-click":true,
	"mi-datepicker-click-data":true,
	"mi-datepicker-scroll":true,
	"mi-button":true,
	"mi-datasendbox":true,
	"mi-datareceivebox":true,
	"mi-current-time":true,
	"mi-select-address":true,
	"mi-qrcode":true,
	"mi-track-map":true,
};
export default function renderCom(config){
	let Com = comArr[config.component_type];
	if(Com){
		return <MWrapper {...config} id={config.id}/>
	}
	else{
		return null
	}
}